package com.example.travelservlet.plan.service;

import com.example.travelservlet.entity.Plan;

import java.util.List;
import java.util.Map;

/**
 * @author 30697
 */
public interface PlanService {
    Plan createPlan(Plan plan);
    Plan updatePlan(Plan plan);

    List<Plan> findPlansByTotalPlanId(String totalPlanId);

    List<Plan> findPlanByBeginTimeAndAndTotalPlanId(String beginTime,String totalPlanId);

//    List<Plan> findPlanBySequenceAndTotalPlanId(Plan plan,String totalPlanId);

    void deleteByPlanId(String planId);

    Plan findPlanByPlanId(String planId);

    void setPlanToUsing(String planId);
}
